package com.engine.cn.service;

import com.engine.cn.agency.RequirePermission;
import com.engine.cn.configuration.CustomProperties;

public class CustomService {
    private final CustomProperties properties;

    public CustomService(CustomProperties properties) {
        this.properties = properties;
    }
    @RequirePermission
    public String sayHello() {
        return "Hello from " + properties.getName() + " with timeout " + properties.getTimeout();
    }
}
